package com.hqyj.finance.server.invest.financeinvest.service.impl;

import cn.hutool.http.HttpUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hqyj.finance.server.invest.financeinvest.entity.UserFund;
import com.hqyj.finance.server.invest.financeinvest.mapper.UserFundMapper;
import com.hqyj.finance.server.invest.financeinvest.service.UserFundService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class UserFundServiceImpl extends ServiceImpl<UserFundMapper, UserFund> implements UserFundService {


    @Value("${myproject.ig507-licence}")
    private String licence;
    @Override
    public String queryAllOpenFundIndexRealInfo() throws Exception {
        return HttpUtil.get("https://ig507.com/data/all/jjsjzx/jjjz/kfsjj_gpxjj_zsx?licence="+this.licence);
    }
}
